<!DOCTYPE html>
<html>

	<head>
		<meta charset="UTF-8">
		<title></title>
		<script type="text/javascript" src="../js/jquery-1.8.3.js"></script>
		<script type="text/javascript" src="../js/easyui/jquery.easyui.min.js"></script>
		<script type="text/javascript" src="../js/easyui/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="../js/ztree/jquery.ztree.all-3.5.js" charset="UTF-8"></script>
		<link rel="stylesheet" href="../js/easyui/themes/default/easyui.css" />
		<link rel="stylesheet" href="../js/easyui/themes/icon.css" />
		<link rel="stylesheet" type="text/css" href="../js/ztree/zTreeStyle.css" />
		<script type="text/javascript">
			$(function() {
				$.extend($.fn.validatebox.defaults.rules, {    
				    phone: {    
				        validator: function(value, param){    
				           var reg = /^1[3,4,5,7,8]\d{9}$/;
				           
				           return reg.test(value);
				        },    
				        message: '请输入正确的手机号码'   
				    }    
				}); 
			});
		</script>
	</head>

	<body>
		<input class="easyui-validatebox" data-options="validType:'phone'">  
	</body>

</html>